method of separation of variables wave equation